package errs

/*************************************************
 *	@author zander
 *	@time 	2018年1月16日09:07:48
 *	@brief 	系统错误
 *************************************************/

func FsSaveErr(obj... interface{})  error{
	return HDException{nil,10001,"文件保存错误",obj}
}

func FsFileTypeErr(obj... interface{})  error{
	return HDException{nil,10002,"文件类型错误",obj}
}

func FsGetErr(obj... interface{})  error{
	return HDException{nil,10003,"读取数据库文件错误",obj}
}

func FsRQCreateErr(obj... interface{})  error{
	return HDException{nil,10004,"二维码生成异常",obj}
}

func FsCreateErr(obj... interface{})  error{
	return HDException{nil,10005,"文件生成异常",obj}
}

func FsSearchErr(obj... interface{})  error{
	return HDException{nil,10006,"文件查询失败",obj}
}

func ParamDataNilErr(obj... interface{})  error{
	return HDException{nil,10100,"请求参数为空或者格式错误",obj}
}

func ParamFieldNilErr(obj... interface{})  error{
	return HDException{nil,10101,"请求参数,属性空值校验失败",obj}
}

func ParamFieldTypeErr(obj... interface{})  error{
	return HDException{nil,10102,"请求参数,参数值与预设值不符",obj}
}

func ParamTypePtrErr(obj... interface{})  error{
	return HDException{nil,10103,"请求参数传入必须为ptr格式",obj}
}

func ParamNotInPtrErr(obj... interface{})  error{
	return HDException{nil,10104,"请求参数不爱队列中",obj}
}

func JsonStrfyErr(obj... interface{})  error{
	return HDException{nil,10200,"json格式化错误",obj}
}
func JsonByteToObjErr(obj... interface{})  error{
	return HDException{nil,10201,"将字节码转换为对象失败",obj}
}

func RftTypeErr(obj... interface{})  error{
	return HDException{nil,10300,"反射时，传入的对象有误",obj}
}

func HttpRequestCreateErr(obj... interface{})  error{
	return HDException{nil,10400,"http请求生成出错",obj}
}
func HttpResponseParseErr(obj... interface{})  error{
	return HDException{nil,10401,"http响应解析出错",obj}
}
func HttpGetDataErr(obj... interface{})  error{
	return HDException{nil,10401,"http读取数据出错",obj}
}

